#ifndef UI_H
#define UI_H

#include <string>

#include "lvgl.h"
#include "ui_events.h"
#include "ui_helpers.h"
#include "ui_Screen1.h"

// SCREEN: ui_Screen1
void ui_Screen1_screen_init(void);
extern lv_obj_t * ui_Screen1;
extern lv_obj_t * ui_Container1;
extern lv_obj_t * ui_Panel5;
extern lv_obj_t * ui_Panel1;
void ui_event_Button2(lv_event_t * e);
extern lv_obj_t * ui_Button2;
extern lv_obj_t * ui_Image5;
extern lv_obj_t * ui_Panel2;
void ui_event_Button1(lv_event_t * e);
extern lv_obj_t * ui_Button1;
extern lv_obj_t * ui_Image6;
extern lv_obj_t * ui_Panel3;
void ui_event_Switch1(lv_event_t * e);
extern lv_obj_t * ui_Switch1;
extern lv_obj_t * ui_Image7;
extern lv_obj_t * ui_Image9;
extern lv_obj_t * ui_Home;
extern lv_obj_t * ui_Arc2;
extern lv_obj_t * ui_Panel11;
extern lv_obj_t * ui_Panel12;
extern lv_obj_t * ui_tembar;
extern lv_obj_t * ui_humbar;
extern lv_obj_t * ui_temnum;
extern lv_obj_t * ui_humnum;
extern lv_obj_t * ui_templabel;
extern lv_obj_t * ui_humlabel;
extern lv_obj_t * ui_Image1;
extern lv_obj_t * ui_Image4;
extern lv_obj_t * ui_type;
extern lv_obj_t * ui_ppm;
extern lv_obj_t * ui_concentration;
extern lv_obj_t * ui_Chart;
extern lv_obj_t * ui_Panel18;
extern lv_obj_t * ui_Chart1;
extern lv_obj_t * ui_Label12;
extern lv_obj_t * ui_Label13;
extern lv_obj_t * ui_Label14;
extern lv_obj_t * ui_Label15;
extern lv_obj_t * ui_Label16;
extern lv_obj_t * ui_Dropdown1;
extern lv_obj_t * ui____initial_actions0;

extern float Voltage[8];
extern float humidity;
extern float temperature;

extern std::string label;
extern float regression_output;

LV_IMG_DECLARE(ui_img_home_png);    // assets/home (1).png
LV_IMG_DECLARE(ui_img_257834180);    // assets/l-chart (1).png
LV_IMG_DECLARE(ui_img_pp_png);    // assets/pump (4).png
LV_IMG_DECLARE(ui_img_ppb_png);    // assets/pump (2).png
LV_IMG_DECLARE(ui_img_1052811074);    // assets/摄氏度-01.png
LV_IMG_DECLARE(ui_img_61659473);    // assets/16gl-percent.png

#define button1 4               //right
#define button2 5               //down
#define button3 6               //center
#define button4 7               //left
#define button5 15
#define button6 16
#define button7 17
#define button8 18
#define PUMP_SW_PIN   21

void ui_init(void);
void user_init(void);
void update_chart(void);

#endif
